/**
 * 权限相关Mock数据
 */

import type { Permission } from '@/types'

// 权限Mock数据
export const mockPermissions: Permission[] = [
  {
    id: '1',
    name: '工作台查看',
    code: 'dashboard:view',
    type: 'menu',
    parentId: null,
    path: '/admin/dashboard',
    description: '工作台查看权限',
    sort: 1,
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '2',
    name: '系统管理',
    code: 'system',
    type: 'menu',
    parentId: null,
    path: '/admin/system',
    description: '系统管理模块',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '3',
    name: '用户管理',
    code: 'system:user',
    type: 'menu',
    parentId: '2',
    path: '/admin/system/user',
    description: '用户管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '4',
    name: '查看用户',
    code: 'system:user:view',
    type: 'button',
    parentId: '3',
    description: '查看用户权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '5',
    name: '新增用户',
    code: 'system:user:create',
    type: 'button',
    parentId: '3',
    description: '新增用户按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '6',
    name: '编辑用户',
    code: 'system:user:edit',
    type: 'button',
    parentId: '3',
    description: '编辑用户按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '7',
    name: '删除用户',
    code: 'system:user:delete',
    type: 'button',
    parentId: '3',
    description: '删除用户按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '8',
    name: '获取用户列表',
    code: 'system:user:list:api',
    type: 'api',
    parentId: '3',
    path: '/api/v1/users',
    method: 'GET',
    description: '获取用户列表接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '9',
    name: '创建用户接口',
    code: 'system:user:create:api',
    type: 'api',
    parentId: '3',
    path: '/api/v1/users',
    method: 'POST',
    description: '创建用户接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '10',
    name: '更新用户接口',
    code: 'system:user:update:api',
    type: 'api',
    parentId: '3',
    path: '/api/v1/users/{id}',
    method: 'PUT',
    description: '更新用户接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '11',
    name: '删除用户接口',
    code: 'system:user:delete:api',
    type: 'api',
    parentId: '3',
    path: '/api/v1/users/{id}',
    method: 'DELETE',
    description: '删除用户接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '12',
    name: '角色管理',
    code: 'system:role',
    type: 'menu',
    parentId: '2',
    path: '/admin/system/role',
    description: '角色管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '13',
    name: '查看角色',
    code: 'system:role:view',
    type: 'button',
    parentId: '12',
    description: '查看角色权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '14',
    name: '新增角色',
    code: 'system:role:create',
    type: 'button',
    parentId: '12',
    description: '新增角色按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '15',
    name: '编辑角色',
    code: 'system:role:edit',
    type: 'button',
    parentId: '12',
    description: '编辑角色按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '16',
    name: '删除角色',
    code: 'system:role:delete',
    type: 'button',
    parentId: '12',
    description: '删除角色按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '17',
    name: '权限管理',
    code: 'system:permission',
    type: 'menu',
    parentId: '2',
    path: '/admin/system/permission',
    description: '权限管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '18',
    name: '查看权限',
    code: 'system:permission:view',
    type: 'button',
    parentId: '17',
    description: '查看权限权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '19',
    name: '新增权限',
    code: 'system:permission:create',
    type: 'button',
    parentId: '17',
    description: '新增权限按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '20',
    name: '编辑权限',
    code: 'system:permission:edit',
    type: 'button',
    parentId: '17',
    description: '编辑权限按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '21',
    name: '删除权限',
    code: 'system:permission:delete',
    type: 'button',
    parentId: '17',
    description: '删除权限按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '22',
    name: '菜单管理',
    code: 'system:menu',
    type: 'menu',
    parentId: '2',
    path: '/admin/system/menu',
    description: '菜单管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '23',
    name: '查看菜单',
    code: 'system:menu:view',
    type: 'button',
    parentId: '22',
    description: '查看菜单权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '24',
    name: '新增菜单',
    code: 'system:menu:create',
    type: 'button',
    parentId: '22',
    description: '新增菜单按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '25',
    name: '编辑菜单',
    code: 'system:menu:edit',
    type: 'button',
    parentId: '22',
    description: '编辑菜单按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '26',
    name: '删除菜单',
    code: 'system:menu:delete',
    type: 'button',
    parentId: '22',
    description: '删除菜单按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 系统监控模块权限
  {
    id: '27',
    name: '系统监控',
    code: 'monitor',
    type: 'menu',
    parentId: null,
    path: '/admin/monitor',
    description: '系统监控模块',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // Redis管理权限
  {
    id: '28',
    name: 'Redis管理',
    code: 'monitor:redis',
    type: 'menu',
    parentId: '27',
    path: '/admin/monitor/redis',
    description: 'Redis管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '29',
    name: '查看Redis',
    code: 'monitor:redis:view',
    type: 'button',
    parentId: '28',
    description: '查看Redis权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '30',
    name: '删除Redis键',
    code: 'monitor:redis:delete',
    type: 'button',
    parentId: '28',
    description: '删除Redis键权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '31',
    name: 'Redis查询接口',
    code: 'monitor:redis:query:api',
    type: 'api',
    parentId: '28',
    path: '/api/v1/redis/keys',
    method: 'GET',
    description: 'Redis查询接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '32',
    name: 'Redis删除接口',
    code: 'monitor:redis:delete:api',
    type: 'api',
    parentId: '28',
    path: '/api/v1/redis/keys/{key}',
    method: 'DELETE',
    description: 'Redis删除接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 接口文档权限
  {
    id: '33',
    name: '接口文档',
    code: 'monitor:api-doc',
    type: 'menu',
    parentId: '27',
    path: '/admin/monitor/api-doc',
    description: '接口文档页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 定时任务权限
  {
    id: '34',
    name: '定时任务',
    code: 'monitor:task',
    type: 'menu',
    parentId: '27',
    path: '/admin/monitor/task',
    description: '定时任务页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '35',
    name: '查看任务',
    code: 'monitor:task:view',
    type: 'button',
    parentId: '34',
    description: '查看定时任务权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '36',
    name: '新增任务',
    code: 'monitor:task:create',
    type: 'button',
    parentId: '34',
    description: '新增定时任务权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '37',
    name: '编辑任务',
    code: 'monitor:task:edit',
    type: 'button',
    parentId: '34',
    description: '编辑定时任务权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '38',
    name: '删除任务',
    code: 'monitor:task:delete',
    type: 'button',
    parentId: '34',
    description: '删除定时任务权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '39',
    name: '启动任务',
    code: 'monitor:task:start',
    type: 'button',
    parentId: '34',
    description: '启动定时任务权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '40',
    name: '停止任务',
    code: 'monitor:task:stop',
    type: 'button',
    parentId: '34',
    description: '停止定时任务权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '41',
    name: '获取任务列表接口',
    code: 'monitor:task:list:api',
    type: 'api',
    parentId: '34',
    path: '/api/v1/tasks',
    method: 'GET',
    description: '获取定时任务列表接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '42',
    name: '创建任务接口',
    code: 'monitor:task:create:api',
    type: 'api',
    parentId: '34',
    path: '/api/v1/tasks',
    method: 'POST',
    description: '创建定时任务接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '43',
    name: '更新任务接口',
    code: 'monitor:task:update:api',
    type: 'api',
    parentId: '34',
    path: '/api/v1/tasks/{id}',
    method: 'PUT',
    description: '更新定时任务接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '44',
    name: '删除任务接口',
    code: 'monitor:task:delete:api',
    type: 'api',
    parentId: '34',
    path: '/api/v1/tasks/{id}',
    method: 'DELETE',
    description: '删除定时任务接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '45',
    name: '启动任务接口',
    code: 'monitor:task:start:api',
    type: 'api',
    parentId: '34',
    path: '/api/v1/tasks/{id}/start',
    method: 'POST',
    description: '启动定时任务接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '46',
    name: '停止任务接口',
    code: 'monitor:task:stop:api',
    type: 'api',
    parentId: '34',
    path: '/api/v1/tasks/{id}/stop',
    method: 'POST',
    description: '停止定时任务接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 日志管理权限
  {
    id: '47',
    name: '日志管理',
    code: 'monitor:log',
    type: 'menu',
    parentId: '27',
    path: '/admin/monitor/log',
    description: '日志管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '48',
    name: '查看日志',
    code: 'monitor:log:view',
    type: 'button',
    parentId: '47',
    description: '查看日志权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '49',
    name: '删除日志',
    code: 'monitor:log:delete',
    type: 'button',
    parentId: '47',
    description: '删除日志权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '50',
    name: '获取日志列表接口',
    code: 'monitor:log:list:api',
    type: 'api',
    parentId: '47',
    path: '/api/v1/logs',
    method: 'GET',
    description: '获取日志列表接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '51',
    name: '删除日志接口',
    code: 'monitor:log:delete:api',
    type: 'api',
    parentId: '47',
    path: '/api/v1/logs/{id}',
    method: 'DELETE',
    description: '删除日志接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // AI管理模块权限
  {
    id: '52',
    name: 'AI管理',
    code: 'ai',
    type: 'menu',
    parentId: null,
    path: '/admin/ai',
    description: 'AI管理模块',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 大模型管理权限
  {
    id: '53',
    name: '大模型管理',
    code: 'ai:llm',
    type: 'menu',
    parentId: '52',
    path: '/admin/ai/llm',
    description: '大模型管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '54',
    name: '查看大模型',
    code: 'ai:llm:view',
    type: 'button',
    parentId: '53',
    description: '查看大模型权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '55',
    name: '新增大模型',
    code: 'ai:llm:create',
    type: 'button',
    parentId: '53',
    description: '新增大模型按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '56',
    name: '编辑大模型',
    code: 'ai:llm:edit',
    type: 'button',
    parentId: '53',
    description: '编辑大模型按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '57',
    name: '删除大模型',
    code: 'ai:llm:delete',
    type: 'button',
    parentId: '53',
    description: '删除大模型按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '58',
    name: '管理模型Key',
    code: 'ai:llm:key',
    type: 'button',
    parentId: '53',
    description: '管理模型Key权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '59',
    name: '获取大模型列表接口',
    code: 'ai:llm:list:api',
    type: 'api',
    parentId: '53',
    path: '/api/v1/ai/llm',
    method: 'GET',
    description: '获取大模型列表接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '60',
    name: '创建大模型接口',
    code: 'ai:llm:create:api',
    type: 'api',
    parentId: '53',
    path: '/api/v1/ai/llm',
    method: 'POST',
    description: '创建大模型接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '61',
    name: '更新大模型接口',
    code: 'ai:llm:update:api',
    type: 'api',
    parentId: '53',
    path: '/api/v1/ai/llm/{id}',
    method: 'PUT',
    description: '更新大模型接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '62',
    name: '删除大模型接口',
    code: 'ai:llm:delete:api',
    type: 'api',
    parentId: '53',
    path: '/api/v1/ai/llm/{id}',
    method: 'DELETE',
    description: '删除大模型接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '63',
    name: '添加模型Key接口',
    code: 'ai:llm:key:add:api',
    type: 'api',
    parentId: '53',
    path: '/api/v1/ai/llm/{id}/keys',
    method: 'POST',
    description: '添加模型Key接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '64',
    name: '删除模型Key接口',
    code: 'ai:llm:key:delete:api',
    type: 'api',
    parentId: '53',
    path: '/api/v1/ai/llm/{id}/keys/{keyId}',
    method: 'DELETE',
    description: '删除模型Key接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // Agent管理权限
  {
    id: '65',
    name: 'Agent管理',
    code: 'ai:agent',
    type: 'menu',
    parentId: '52',
    path: '/admin/ai/agent',
    description: 'Agent管理页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '66',
    name: '查看Agent',
    code: 'ai:agent:view',
    type: 'button',
    parentId: '65',
    description: '查看Agent权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '67',
    name: '新增Agent',
    code: 'ai:agent:create',
    type: 'button',
    parentId: '65',
    description: '新增Agent按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '68',
    name: '编辑Agent',
    code: 'ai:agent:edit',
    type: 'button',
    parentId: '65',
    description: '编辑Agent按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '69',
    name: '删除Agent',
    code: 'ai:agent:delete',
    type: 'button',
    parentId: '65',
    description: '删除Agent按钮权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '70',
    name: '获取Agent列表接口',
    code: 'ai:agent:list:api',
    type: 'api',
    parentId: '65',
    path: '/api/v1/ai/agent',
    method: 'GET',
    description: '获取Agent列表接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '71',
    name: '创建Agent接口',
    code: 'ai:agent:create:api',
    type: 'api',
    parentId: '65',
    path: '/api/v1/ai/agent',
    method: 'POST',
    description: '创建Agent接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '72',
    name: '更新Agent接口',
    code: 'ai:agent:update:api',
    type: 'api',
    parentId: '65',
    path: '/api/v1/ai/agent/{id}',
    method: 'PUT',
    description: '更新Agent接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '73',
    name: '删除Agent接口',
    code: 'ai:agent:delete:api',
    type: 'api',
    parentId: '65',
    path: '/api/v1/ai/agent/{id}',
    method: 'DELETE',
    description: '删除Agent接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // AI对话权限
  {
    id: '74',
    name: 'AI对话',
    code: 'ai:chat',
    type: 'menu',
    parentId: '52',
    path: '/admin/ai/chat',
    description: 'AI对话页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '75',
    name: '查看对话',
    code: 'ai:chat:view',
    type: 'button',
    parentId: '74',
    description: '查看对话权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '76',
    name: '创建对话',
    code: 'ai:chat:create',
    type: 'button',
    parentId: '74',
    description: '创建对话权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '77',
    name: '发送消息',
    code: 'ai:chat:send',
    type: 'button',
    parentId: '74',
    description: '发送消息权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '78',
    name: '删除对话',
    code: 'ai:chat:delete',
    type: 'button',
    parentId: '74',
    description: '删除对话权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '79',
    name: '获取对话列表接口',
    code: 'ai:chat:list:api',
    type: 'api',
    parentId: '74',
    path: '/api/v1/ai/chat/sessions',
    method: 'GET',
    description: '获取对话列表接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '80',
    name: '创建对话接口',
    code: 'ai:chat:create:api',
    type: 'api',
    parentId: '74',
    path: '/api/v1/ai/chat/sessions',
    method: 'POST',
    description: '创建对话接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '81',
    name: '发送消息接口',
    code: 'ai:chat:send:api',
    type: 'api',
    parentId: '74',
    path: '/api/v1/ai/chat/sessions/{id}/messages',
    method: 'POST',
    description: '发送消息接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '82',
    name: '删除对话接口',
    code: 'ai:chat:delete:api',
    type: 'api',
    parentId: '74',
    path: '/api/v1/ai/chat/sessions/{id}',
    method: 'DELETE',
    description: '删除对话接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '83',
    name: '获取可用模型接口',
    code: 'ai:chat:models:api',
    type: 'api',
    parentId: '74',
    path: '/api/v1/ai/chat/models',
    method: 'GET',
    description: '获取可用模型接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '84',
    name: '流式对话接口',
    code: 'ai:chat:stream:api',
    type: 'api',
    parentId: '74',
    path: '/api/v1/ai/chat/stream',
    method: 'POST',
    description: '流式对话接口',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 代码生成模块权限
  {
    id: '85',
    name: '代码生成',
    code: 'codegen',
    type: 'menu',
    parentId: null,
    path: '/admin/codegen',
    description: '代码生成模块',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 前端增删改查权限
  {
    id: '86',
    name: '前端增删改查',
    code: 'codegen:frontend',
    type: 'menu',
    parentId: '85',
    path: '/admin/codegen/frontend',
    description: '前端增删改查页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '87',
    name: '查看前端代码生成',
    code: 'codegen:frontend:view',
    type: 'button',
    parentId: '86',
    description: '查看前端代码生成权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '88',
    name: '生成前端代码',
    code: 'codegen:frontend:generate',
    type: 'button',
    parentId: '86',
    description: '生成前端代码权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  // 后端增删改查权限
  {
    id: '89',
    name: '后端增删改查',
    code: 'codegen:backend',
    type: 'menu',
    parentId: '85',
    path: '/admin/codegen/backend',
    description: '后端增删改查页面',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '90',
    name: '查看后端代码生成',
    code: 'codegen:backend:view',
    type: 'button',
    parentId: '89',
    description: '查看后端代码生成权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '91',
    name: '生成后端代码',
    code: 'codegen:backend:generate',
    type: 'button',
    parentId: '89',
    description: '生成后端代码权限',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
  {
    id: '92',
    name: '前端生成测试代码',
    code: 'codegen:student',
    type: 'menu',
    parentId: '85',
    path: '/admin/codegen/student',
    description: '前端生成测试代码',
    status: 'active',
    createTime: '2024-01-01 00:00:00',
    updateTime: '2024-01-01 00:00:00'
  },
]
